
// mixin.js

export const defaultCustomTips = {
  show: false,
  title: '',
  content: '',
  confirmText: '确定',
  cancelText: '取消',
  cancelColor: 'rgba(0, 0, 0, 0.85)',
  confirmColor: '#666666',
  success: null
}

export const showCustomTipsMixin = {
  methods: {
    showCustomTips(modalParam){
      let showCustomTips = Object.assign(this.$store.state.showCustomTips, modalParam)
      showCustomTips.show = true
      this.$store.commit('updateShowCustomTips',showCustomTips)
    },
  }
}
